package com.qf.service;

import com.qf.model.StandardReport;
import com.qf.model.StandardSubmit;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ElasticsearchService {

    //保存submit对象到ES服务
    public void saveLog(StandardSubmit submit) throws IOException;

    //更新状态推送报告到ES服务器
    public void updateLog(StandardReport report) throws IOException;


    //查询es中的日志信息条数
    public Long searchLogCount(Map parameter) throws IOException;

    //查询es中的日志信息
    public List<Map> searchLog(Map parameter) throws IOException;

    //统计报表查询
    public Map<String, Long> statSendStatus(Map parameter) throws IOException;
}
